class INSERTION_SORT{

	static int[] num = {10,9,8,7,6,5,4,3,2,1};

	public static void main(String[] args) {
		
		int i;
		int key;
		for(int j=1; j<num.length; j++){
			key = num[j];
			i = j - 1;
			while(i>=0 && num[i]>key){
				num[i+1] = num[i];
				i = i - 1;
			}
			num[i+1] = key;
		}

		for(int m=0; m<num.length; m++){
			if (m < num.length - 1)
				System.out.print(num[m] + ",");
			else
				System.out.print(num[m]);
		}
	}

}